#include "addschooldlg.h"
#include "ui_addschooldlg.h"

AddSchoolDlg::AddSchoolDlg(QWidget* parent)
    : QDialog(parent)
    , ui(new Ui::AddSchoolDlg)
{
    ui->setupUi(this);
    connect(ui->pushButton, &QPushButton::clicked, [=]() {
        m_schoolName = ui->AddSchoolComboBox->currentText();
        accept();
    });
}

AddSchoolDlg::~AddSchoolDlg()
{
    delete ui;
}
